﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;

namespace ExamDemo.Data
{
        public class ExamDemoDb : DbContext
        {
            // You can add custom code to this file. Changes will not be overwritten.
            // 
            // If you want Entity Framework to drop and regenerate your database
            // automatically whenever you change your model schema, please use data migrations.
            // For more information refer to the documentation:
            // http://msdn.microsoft.com/en-us/data/jj591621.aspx

            public ExamDemoDb() : base("name=MVCDemoDb")
            {
            }

            public System.Data.Entity.DbSet<ExamDemo.Models.Messages> Messages { get; set; }
            public System.Data.Entity.DbSet<ExamDemo.Models.Users> Users { get; set; }
            public System.Data.Entity.DbSet<ExamDemo.Models.Comments> Comments { get; set; }
        }
    }
